package Com.amit.Java_New_Feature;

import java.util.ArrayList;
import java.util.Iterator;

public class Lab21 {

	public static void main(String[] args) {
		
		ArrayList<String> al=new ArrayList<String>();
		
		al.add("amit");
		al.add("anil");
		al.add("anil");
		
		System.out.println("element "+al.get(1));
		
		Iterator it=al.iterator();	
		
		
		
		
		
	}

}
